package timewheel

import "time"

/**
 * @Author : bothinli
 * @Description:
 */

type TimeWheelOption func(wheel *TimeWheel)

func WithInterval(interval time.Duration) TimeWheelOption {
	return func(w *TimeWheel) {
		w.interval = interval
	}
}

func WithSize(size int) TimeWheelOption {
	return func(wheel *TimeWheel) {
		wheel.size = size
	}
}
